/**
 * Created with IntelliJ IDEA.
 * User: ajhin
 * Date: 8/30/13
 * Time: 9:10 AM
 * To change this template use File | Settings | File Templates.
 */
package com.societyGames.utility
{
import flash.events.Event;

public class IntEvent extends Event
{
  private var _integer:int;

  public function IntEvent(type:String, integer:int, bubbles:Boolean=false, cancelable:Boolean=false)
  {
    super(type, bubbles, cancelable);
    _integer = integer;
  }

  public function get integer():int
  {
    return _integer;
  }

  // always create a clone() method for events in case you want to re-dispatch them.
  public override function clone():Event
  {
    return new IntEvent(type, integer, bubbles, cancelable);
  }
}
}
